package com.hzyl.famousreader.repository.webservice.model;

import java.io.Serializable;

public class Result<T> implements Serializable {

  public static final int SUCCESS_ERRNO = 0;
  public static final int DEL_SUCCESS_ERRNO = 100;
  public static final int ERROR_ERRNO = 10000;

  private int errno;
  private String errmsg;
  private T data;

  public int getErrno() {
    return errno;
  }

  public void setErrno(int errno) {
    this.errno = errno;
  }

  public String getErrmsg() {
    return errmsg;
  }

  public void setErrmsg(String errmsg) {
    this.errmsg = errmsg;
  }

  public T getData() {
    return data;
  }

  public void setData(T data) {
    this.data = data;
  }
}
